/**
 * www.mbaobao.com Inc.
 * Copyright (c) 2013 All Rights Reserved.
 */
package top.rushpeak.edu03.core.mq;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 *                       
 * @Filename MessageContent.java
 *
 * @Description 
 *
 * @Version 1.0
 *
 * @Author fred
 *
 * @Email kuci@mbaobao.com
 *       
 * @History
 *<li>Author: fred</li>
 *<li>Date: 2014-11-21</li>
 *<li>Version: 1.0</li>
 *<li>Content: create</li>
 *
 */
public class MessageContent<T> implements Serializable {
	
	/** Comment for <code>serialVersionUID</code> */
	private static final long	serialVersionUID	= 5579241390541869671L;
	
	private T					t;
	
	private Map<String, String>	params				= new HashMap<String, String>();
	
	public MessageContent(T t) {
		super();
		this.t = t;
	}
	
	public T getT() {
		return t;
	}
	
	public void setT(T t) {
		this.t = t;
	}
	
	public Map<String, String> getParams() {
		return params;
	}
	
	public void setParams(Map<String, String> params) {
		this.params = params;
	}
	
	@Override
	public String toString() {
		return String.format("MessageContent [t=%s, params=%s]", t, params);
	}
	
}
